﻿namespace BridgePattern.Sample
{
    abstract class AbstractImage
    {
        protected IImageImp _Imp;

        //注入实现类接口对象
        public void SetImageImp(IImageImp imp)
        {
            _Imp = imp;
        }

        /// <summary>
        /// 解析文件
        /// </summary>
        /// <param name="fileName"></param>
        public abstract void ParseFile(string fileName);
    }
}
